<div class="contents">
  <ol class="breadcrumb" ng-if="false">
    <li><a href="#/index/panel">首页</a></li>
    <li><a href="#/product/list">产品列表</a></li>
    <li class="active">产品详情</li>
  </ol>
  <div  style="width: 50%;display: inline-block;">
      <table class="table table-striped table-bordered">
        <tbody> 
          <tr> <td width="100"> 产品名称</td> <td >{{project.pName }}</td> </tr>
          <tr> <td>产品全名</td> <td >{{project.pFullName }}</td> </tr>
          <tr> <td>产品类型</td> <td >{{project.pType | productTypeRender}}</td> </tr>
          <tr> <td>发行地区</td> <td >{{project.pBelongArea | pBelongAreaRender}}</td> </tr>
          <tr> <td>发行规模 </td> <td >{{project.pAllIssuingScale | moneyRender}}</td> </tr>
          <tr> <td>起购金额</td> <td >{{project.pMinimumAmount | moneyRender}}</td> </tr>
          <tr> <td>产品期限</td> <td >{{project.pDueTime | dueTimeRender }}</td> </tr>
          <tr> <td>产品期限说明</td> <td >{{project.pDueTimeDes }}</td> </tr>
          <tr> <td>提交资料</td> <td >{{project.tjzls| tjzlStatus}}</td> </tr>
          <tr> <td>预期销售金额</td> <td >{{project.pExpectSubscriptionAmount | moneyRender}}</td> </tr> 
          <tr> <td>实际销售金额</td> <td >{{project.pRealSubscriptionAmount | moneyRender}}</td> </tr>
          <tr> <td>实际销售份额</td> <td >{{project.pRealSubscriptionShare | moneyRender}}</td> </tr>
          <tr> <td>投资领域</td> <td >{{project.pInvestType | investTypeRender}}</td> </tr>
          <tr> <td>融资方</td> <td > {{project.pProjectOwner}} </td> </tr>
          <tr> <td>发行机构</td> <td > {{project.pInvestOwner}} </td> </tr>
          <tr> <td>正式开始销售的日期</td> <td >{{project.pSaleTimeStart | date:'yyyy年MM月dd日'}}</td> </tr>
          <tr> <td>产品成立时间</td> <td >{{project.pEstablishmentTime | date:'yyyy年MM月dd日'}}</td> </tr>
          <tr> <td>销售状态</td> <td >{{project.pSaleStatus | productSaleStatusRender}}</td> </tr>
          <tr> <td>付息方式</td> <td >{{project.pPaymentInterestType | paymentInterestTypeRender}}</td> </tr>
          <tr> <td>项目期限是否提前结束</td> <td >{{project.pEndEarlyIdentification | pEndEarlyIdentificationRender}}</td> </tr>
          <tr> <td>累进追加金额的最小单位</td> <td >{{project.pProgressiveAmount | moneyRender}}</td> </tr>
          <tr> <td>大小配比类型</td> <td >{{project.pSizeRatioType | pSizeRatioTypeRender}}</td> </tr>
          <tr> <td>大小配比说明</td> <td >{{project.pSizeRatioExplain}}</td> </tr>
          <tr> <td>供应方公司</td> <td >{{project.pAccessCompany}}</td> </tr>
          <tr> <td>供应方对接人</td> <td >{{project.pAccessName}}</td> </tr>
          <tr> <td>发布状态</td> <td >{{project.pPublicStatus | productPublicStatusRender}}</td> </tr>
          <tr> <td>发布中间状态</td> <td >{{project.status | productStatusRender}}</td> </tr>
          <tr> <td>募集进度</td> <td >{{((project.pAllSubscriptionAmount / project.pIssuingScale) || 0) * 100 | number:2}}%</td> </tr> 
          <tr> <td>募集进度说明</td> <td >{{project.pRecruitmentSummary}}</td> </tr> 
        </tbody>
      </table>
  </div>
  <div style="width: 45%;display: inline-block;float: right;">
  <form class="form-horizontal" role="form" name="form" novalidate ng-submit="save()">
    <div> 最早订单时间:{{minOrderCreateDate}}</div>
     <div> 最晚订单时间:{{maxOrderCreateDate}}</div>
      
      <div style="margin-top:50px" class="form-group" ng-class="{'has-error':form.saleTimeStart.$invalid}">
          <label class="col-sm-4 control-label">产品开始销售时间</label>
          <div class="col-sm-5">
             <input type="date"  class="form-control" placeholder="产品开始销售时间，格式如2015-01-01" name="saleTimeStart" ng-model="dateparam.saleTimeStart" maxlength="10" max="9999-99-99" required="required" ng-pattern="/^\d{4}-\d{2}-\d{2}$/">原有时间:{{project.pSaleTimeStart|date:'yyyy-MM-dd'}}
          </div>
        </div>

         <div style="margin-top:50px" class="form-group" ng-class="{'has-error':form.saleTimeEnd.$invalid}">
          <label class="col-sm-4 control-label">产品结束销售时间</label>
          <div class="col-sm-5">
             <input type="date"  class="form-control" placeholder="产品结束销售时间，格式如2015-01-01" name="saleTimeEnd" ng-model="dateparam.saleTimeEnd" maxlength="10" max="9999-99-99"  ng-pattern="/^\d{4}-\d{2}-\d{2}$/">原有时间:{{project.pSaleTimeEnd|date:'yyyy-MM-dd'}}
          </div>
        </div>

        <div class="form-group">
          <label class="col-sm-2 control-label">&nbsp;</label>
          <div class="col-sm-5"> 
            <input type="submit" class="btn btn-primary" value="更新" />
          </div>
        </div>
      </form>
    </div>
 
</div>
  